<div class="list-group sidebar">
    <div class="whitebg paihang list-group-item">
        <h2 class="htitle card-header">点击排行</h2>
        <section class="topnews imgscale"><a href="/"><img src="{{ asset('images/h1.jpg') }}"><span>6条网页设计配色原则,让你秒变配色高手</span></a>
        </section>
        <ul>
            @foreach($topArticles as $article)
            <li><i></i><a href="{{ $article->link() }}">{{ $article->title }}</a></li>
            @endforeach
        </ul>
    </div>
    @if(isset($recommend))
    <div class="whitebg tuijian list-group-item">
        <h2 class="htitle">本栏推荐</h2>
        <section class="topnews imgscale"><a href="/"><img src="{{ asset('images/h2.jpg') }}"><span>6条网页设计配色原则,让你秒变配色高手</span></a>
        </section>
        <ul class="img-li">
            @foreach($recommend as $item)
            <li><a href="{{ $item->link() }}"><i><img src="{{ asset('images/text01.jpg') }}"></i>
                    <p>{{ $item->title }}</p>
                </a></li>
           @endforeach
        </ul>
    </div>
    @endif
    <div class="whitebg cloud list-group-item">
        <h2 class="htitle">标签云</h2>
        <ul>
            @foreach($tags as $tag)
                <a href="{{ route('tags.show',$tag->id) }}" >{{ $tag->name }}</a>
            @endforeach

        </ul>
    </div>
    <div class="whitebg tongji list-group-item">
        <h2 class="htitle">站点信息</h2>
        <ul>
            <li><b>建站时间</b>：{{ $siteInfo->site_created }}</li>
            <li><b>相关技术</b>：{{ $siteInfo->framework }}</li>
            <li><b>文章统计</b>：{{$totalArticle}}条</li>
            <li><b>文章评论</b>：490条</li>
            <li style="word-wrap:break-word;"><b style="display: inline-block;">邮箱</b>：{{ $siteInfo->email }}</li>
            <li><b>微信小程序</b>：关注我</li>
            @if(substr($siteInfo->wx_img,0,4) != 'http')
                <img src="{{asset('admin/upload')}}/{{ $siteInfo->wx_img }}"  class="tongji_gzh">
            @else
                <img src="{{ $siteInfo->wx_img }}"   class="tongji_gzh">
            @endif
        </ul>
    </div>
   {{-- <div class="ad whitebg imgscale list-group-item">
        <ul>
            <a href="/"><img src="{{ asset('images/ad.jpg') }}"></a>
        </ul>
    </div>--}}
</div>